<!DOCTYPE html>
<html>
<head>
    <title>车辆维修表</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>

    <div class="list-search-title-box">
        <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
            <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                <div class="card layui-row" style="flex: 1">
                    <div class="layui-form-item ">
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车牌号/车架号:</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input searchVal" v-model="q.carPlateNoVinNo"
                                       placeholder="请输入车牌号/车架号"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车辆归属:</label>
                            <div class="layui-input-inline">
                                <input v-model="q.deptName" type="text" style="cursor:pointer;" @click="deptTree"
                                       readonly="readonly" class="layui-input searchVal" placeholder="请选择车辆归属"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">品牌/车系/车型:</label>
                            <div class="layui-input-inline">
                                <input type="text" id="carBrandSeriesModel" class="layui-input"
                                       placeholder="请选择品牌/车系/车型" readonly="readonly"/>
                            </div>
                        </div>

                        <section v-show="isFilter">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">维修时车辆状态:</label>
                                <div class="layui-input-inline">
                                    <!-- 车辆状态(当前状态 1整备中，2备发车，3 预定中  4.用车中 5.已过户)-->
                                    <select v-model="q.carStatus" class="layui-select" lay-filter="carStatusSelect">
                                        <option value="">请选择维修时车辆状态</option>
                                        <option value="1">整备中</option>
                                        <option value="2">备发车</option>
                                        <option value="3">预定中</option>
                                        <option value="4">用车中</option>
                                        <option value="5">已过户</option>
                                    </select>
                                </div>
                            </div>
                            <!--<div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">客户名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.customer"
                                           placeholder="请输入客户名称"/>
                                </div>
                            </div>-->
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">维修状态:</label>
                                <div class="layui-input-inline">
                                    <!--维修状态 1 未维修 2 维修中 3 已维修-->
                                    <select lay-filter="repairStatusSelect" v-model="q.repairStatus">
                                        <option value="">全部</option>
                                        <!-- <option value=1>未维修</option>-->
                                        <option value=2>维修中</option>
                                        <option value=3>已维修</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">维修厂名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.serviceName"
                                           placeholder="请输入维修厂名称"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">费用结算:</label>
                                <div class="layui-input-inline">
                                    <!--费用结算1未结算 2已结算-->
                                    <select lay-filter="costSettlement" v-model="q.costSettlement">
                                        <option value="">全部</option>
                                        <option value=1>未结算</option>
                                        <option value=2>已结算</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">故障描述:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.faultDesc"
                                           placeholder="请输入故障描述"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">维修申请号:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.applyNo"
                                           placeholder="请输入维修申请号"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆所有人:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.carOwner"
                                           placeholder="请输入车辆所有人"/>
                                </div>
                            </div>
                            <div class=" flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">维修开始时间:</label>
                                <div class="list-search-sup-title new-layui-title">
                                    <div class="task-content-box-tab">
                                        <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="repairStartDate">
                                            <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                            <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今日</div>
                                            <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                            <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                            <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                            <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                            <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                            <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                        </div>
                                        <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                            <input type="text" class="layui-input"
                                                   id="repairStartDate" v-model="q.repairStarDateStr" readonly
                                                   placeholder="选择日期范围" style="width: 300px;" autocomplete="off">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">维修结束时间:</label>
                                <div class="list-search-sup-title new-layui-title">
                                    <div class="task-content-box-tab">
                                        <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12"
                                             type="repairEndDate">
                                            <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                            <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                            <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                            <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                            <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                            <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                            <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                            <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                        </div>
                                        <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                            <input type="text" class="layui-input" id="repairEndDate"
                                                   v-model="q.repairEndDateStr" readonly placeholder="选择日期范围"
                                                   style="width: 300px;" autocomplete="off">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>
                <div style="display: flex;align-items: center;">
                    <a class="layui-btn search-btn" @click="query">查询</a>
                    <a class="layui-btn reset-btn" @click="reset">重置</a>
                    <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                        <span style="color: #2251C5;">高级筛选</span>
                        <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                    </div>
                </div>
            </section>
        </form>
    </div>
    <div class="list-search-title-box">
        <form class="layui-form">
            <div style="display:flex;width: 100%;">
                <div class="layui-form-item layui-row" style="width: 100%;">
                    <div class="list-search-form-button" style="width: 100%;">
                        <a class="layui-btn search-btn" @click="exports">导出</a>
                        <!--                        <#if shiro.hasPermission("carrepairorder:carrepairorder:save")>-->
                        <a class="layui-btn reset-btn" @click="add" v-m-perm="['carrepairorder:carrepairorder:save']">创建维修单</a>
                        <!--                        </#if>-->
                    </div>
                </div>
            </div>
        </form>
    </div>


    <div class="layui-tab-item layui-show">
        <table class="layui-hide" id="grid" lay-filter="grid"></table>
    </div>
</div>

<!--操作-->
<script type="text/html" id="barTpl">

<!--    <#if shiro.hasPermission("carrepairorder:carrepairorder:update")>-->
        {{#if(d.openFlow != 1){}}
            <a class="layui-grid-btn-xs" lay-event="edit" v-m-perm="['carrepairorder:carrepairorder:update']" more-btn-index="{{d.LAY_INDEX-1}}">编辑</a>
        {{#}}}
<!--    </#if>-->

<!--    <#if shiro.hasPermission("carrepairorder:carrepairorder:info")>-->
    <a class="layui-grid-btn-xs" lay-event="feedbackCheck" v-m-perm="['carrepairorder:carrepairorder:info']" more-btn-index="{{d.LAY_INDEX-1}}">查看</a>
<!--    </#if>-->

</script>

<script src="../../statics/js/modules/carrepairorder/carrepairorder.js?_${.now?long}"></script>
</body>
</html>